<template>
  <div class="conbox">
    <!-- <header>
      <div
        class="img_wrap"
        @click="goBack">
        <img
          :src="`${constant.imgUrl}login/back.png`"
          alt="返回">
      </div>
      <span class="titlename">抢单成功</span>
    </header> -->
    <div class="tip_info_wrap">
      <p class="order_tips">恭喜您, 已成功接单!</p>
      <div class="info_wrap">
        <p class="info">
          <span class="key">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</span>
          <span class="value">{{ info.name || '待确认'  }}</span>
        </p>
        <p class="info">
          <span class="key">手机号码</span>
          <span class="value">{{ info.mobile_phone|| '待确认'  }}</span>
        </p>
        <p class="info">
          <span class="key">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</span>
          <span class="value">{{ info.district||'待确认' }}</span>
        </p>
        <p class="info">
          <span class="key">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</span>
          <span class="value">{{ info.xiaoqu || '待确认' }}</span>
        </p>
        <p class="info">
          <span class="key">户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型</span>
          <span class="value">{{ info.house_type || '待确认' }}</span>
        </p>
        <p class="info">
          <span class="key">面&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;积</span>
          <span class="value">{{ info.square|| '待确认'  }}</span>
        </p>
      </div>
    </div>
    <div class="opt_wrap">
      <p class="option_tips">你还可以选择</p>
      <!-- prebook_id: info.prebook_id, -->
      <navigator
        class="opt_btn contact"
        :url="`/pages/order/centerClientDatail${
          commonJS.queryData({
          mobile_phone: info.mobile_phone,
          create_user_id: info.create_user_id,
          prebook_id: info.prebook_id
      })}`">
      立即联系TA
      </navigator>
      <p class="option_tips">或</p>
      <navigator
        :url="`/pages/order/subscribeOrder?owner_user_id=${info.owner_user_id}&tabIndex=1`"
        class="opt_btn more">
        再多接几单
      </navigator>
    </div>

  </div>
</template>

<script>
export default {
	name: 'GrabOrderSucc',
	data() {
		return {
			info: {},
			constant: this.$constant
		}
	},
	onLoad(val) {
		console.log(val)
		this.info = val
	},
	methods: {
		goBack() {
			uni.navigateBack()
		}
	}
}
</script>

<style scoped lang="scss">
p,span {
    line-height: 1;
}
.conbox {
  background-color: #F5F5F5;
  min-height: 100%;
//   margin-top: 88px;
  header {
      .img_wrap {
        width: 40px;
        height: 68px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        img {
                margin: 0 !important;
            }
      }
  }
}
.titlename {
  margin-left: 0 !important;
  font-size:36px;
  font-weight:600;
  color:rgba(4,4,4,1);
}
.tip_info_wrap {
    background: url($imgUrl + "common/success.png") no-repeat center 79px/100px 100px #fff;
    padding: 200px 29px 23px;

    .order_tips {
        font-size:36px;
        color:rgba(51,51,51,1);
        text-align: center;
    }
    .info_wrap {
        margin-top: 57px;
        p {
            font-size: 24px;
            margin-bottom: 17px;
            .key {
                color: #999;
                padding-right: 20px;
            }
            .value {
                color: #666;
            }
        }
    }
}
.opt_wrap {
    margin-top: 44px;
}
.option_tips {
    margin-bottom: 20px;
    text-align: center;
    font-size:24px;
    color:rgba(153,153,153,1);
}
.opt_btn {
    display: block;
    margin: 0 auto 20px;
    width: calc(100% - 60px);
    text-align: center;
    height:90px;
    line-height: 90px;
    border-radius:45px;
    font-size:32px;
    &.contact {
        background:rgba(255,209,26,1);
        color:rgba(58,27,4,1);
    }
    &.more {
        background:rgba(255,255,255,1);
        color:rgba(255,105,0,1);
    }
}
</style>
